package com.example.electricbicycle.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.example.electricbicycle.dao.ReportDAO;
import com.example.electricbicycle.dao.ReportDAOImpl;

public class ReportServiceImpl implements ReportService {

    private final ReportDAO reportDao = new ReportDAOImpl();

    @Override
    public List<Map<String, Object>> getPurchaseStatsByUser(Date startDate, Date endDate) {
        return reportDao.getPurchaseStatsByUser(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> getPurchaseStatsByTime(Date startDate, Date endDate) {
        return reportDao.getPurchaseStatsByTime(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> getSaleStatsByUser(Date startDate, Date endDate) {
        return reportDao.getSaleStatsByUser(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> getSaleStatsByTime(Date startDate, Date endDate) {
        return reportDao.getSaleStatsByTime(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> getAfterSaleStatsByUser(Date startDate, Date endDate) {
        return reportDao.getAfterSaleStatsByUser(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> getAfterSaleStatsByTime(Date startDate, Date endDate) {
        return reportDao.getAfterSaleStatsByTime(startDate, endDate);
    }
}